﻿using Microsoft.AspNetCore.Components;
using System.Threading.Tasks;

namespace Allin.Abp.AspNetCore.Components.Web.AntDesignTheme.Themes.AntDesign.Toolbar
{
    public partial class LanguageSwitchComponent
    {
        [Inject] public LanguageSwitchViewModel ViewModel { get; set; }

        protected override Task OnInitializedAsync()
        {
            ViewModel.OnInitialized += (s, e) => StateHasChanged();

            return Task.CompletedTask;
        }
    }
}
